<main id="content-container" class="container" role="main">
<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => "form-signin" }, :validate => true) do |f| %>
      <fieldset>
        <h3 style="color:dimgray;">Update registration info</h3>
        <hr class="colorgraph">
        <%= f.email_field :email, :placeholder=>"Email", :class=>"form-control" %>
        <%= f.password_field :password, :placeholder=>"Password", :class=>"form-control middle" %>
        <%= f.password_field :password_confirmation, :placeholder=>"Confirm Password", :class=>"form-control" %>
        <%= f.password_field :current_password, :placeholder=>"Current Password", :class=>"form-control bottom" %>

        <%= f.submit "Update", :class => "btn btn-lg btn-success btn-block" %>
        <br>
        <p class="text-center">
          <%= link_to "Cancel my registration", registration_path(resource_name), :data => { :confirm => "Account will be deleted! Are you sure?" }, :method => :delete %>
        </p>
      </fieldset>
    <% end %>
  </div>
</div>
</main>
